Related Vulnerabilities: CVE-2021-40393  

An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.8.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

Severity Medium

Remote Yes

Type Arbitrary code execution

Description

An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.8.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

AVG-2584 gerbv 2.8.1-1 Medium Vulnerable

https://talosintelligence.com/vulnerability_reports/TALOS-2021-1404
https://github.com/gerbv/gerbv/issues/56
https://github.com/gerbv/gerbv/pull/73
https://github.com/gerbv/gerbv/commit/4d12b696aed19fbcc115fe83aa7597b7c42ba8d6